package com.kerrykidz.filemanagement.dao.model;

import java.text.ParseException;
import java.util.Date;

import com.kerrykidz.system.util.DateUtil;
import com.rdp.framework.exception.RDPException;
import com.rdp.util.time.DateFormatUtil;

public class HisCarCareEntity {
	private String pkCareformId;
	private String comments;
	private String modiBy ;
	private Date modiTime;
	
	private String memberId;
	private String memName;
	
	private String modiTimePage;
	
	private String userName;
	
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getMemName() {
		return memName;
	}

	public void setMemName(String memName) {
		this.memName = memName;
	}

	public String getPkCareformId() {
		return pkCareformId;
	}

	public void setPkCareformId(String pkCareformId) {
		this.pkCareformId = pkCareformId;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public String getModiBy() {
		return modiBy;
	}

	public void setModiBy(String modiBy) {
		this.modiBy = modiBy;
	}

	public Date getModiTime() {
		return modiTime;
	}

	public void setModiTime(Date modiTime) {
		this.modiTime = modiTime;
	}

	public void setModiTimePage(String modiTimePage) throws ParseException {
		this.modiTimePage = modiTimePage;
		try {
			modiTimePage=DateUtil.formatStrToStr(modiTimePage, "yyyy-MM-dd HH:mm:ss.0", "yyyy-MM-dd");
			this.modiTime = DateFormatUtil.convertStrToDate(modiTimePage, "yyyy-MM-dd");
		} catch (RDPException e) {
			e.printStackTrace();
		}
	}
	
	public String getModiTimePage() {
		if (this.modiTime != null) {
			return DateFormatUtil.format(this.modiTime, "yyyy.MM.dd");
		}
		return "";
	}
}